<template>
    <u-form-grid :data="formGrid"></u-form-grid>
</template>

<script>
    import values from '../../utils/values'

    export default {
        name: 'LotteryInfo',
        data () {
            return {
                formGrid: {
                    options: {
                        version: 'v2',
                        url: {
                            page: "/admin/lotteryInfo/page",
                            save: "/admin/lotteryInfo/save",
                            delete: "/admin/lotteryInfo/delete",
                        }
                    },
                    tips: {title: "LotteryInfo", content: "LotteryInfo"},

                    form: {
                        modal: {
                            title: "LotteryInfo"
                        },
                        columns: [
                                        {label: "id", type: "text", name: "id", required: true},
                                        {label: "scope", type: "text", name: "scope", required: true},
                                        {label: "repeatLottery", type: "text", name: "repeatLottery", required: true},
                                        {label: "winType", type: "text", name: "winType", required: true},
                                        {label: "free", type: "text", name: "free", required: true},
                                        {label: "couponName", type: "text", name: "couponName", required: true},
            
                        ]
                    },
                    table: {
                        operation: {
                            primaryKey: "id",
                        },
                        columns: [
                                                        { title: 'id', key: 'id' },
                                                        { title: 'scope', key: 'scope' },
                                                        { title: 'repeatLottery', key: 'repeatLottery' },
                                                        { title: 'winType', key: 'winType' },
                                                        { title: 'free', key: 'free' },
                                                        { title: 'couponName', key: 'couponName' },
                                                    ]
                    }
                }
            }
        },
        methods: {

        }
    }
</script>
